#!/bin/env bash

if [ ! -d "./Annotations" ]; then
  mkdir ./Annotations
fi

if [ ! -d "./images" ]; then
  mkdir ./images
fi

if [ ! -d "./ImageSets/Main" ]; then
  mkdir -p ./ImageSets/Main
fi

if [ ! -d "./labels" ]; then
  mkdir ./labels
fi

cp /home/data/98/*.xml ./Annotations/
cp /home/data/98/*.jpg ./images/

python split.py
python voc2txt.py
python cal_anchors.py